﻿using System.Collections;
using System.Collections.Generic;
using INTEX.DataBase.Tools;
using ReflectionStudio.Core;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.IO;
using WPFExcelReport.Helpers;
namespace WPFExcelReport
{
   
    public partial class ITXEXRPT
    {
        public string YCCPrint(ref bool IsReturn)
        {
            if (app.company != "YCC")
                return filename;
            Helper.GetDate(ref date, ref year, ref month, ref day);
            switch (DocType)
            {
                case "YCCVALB":
                    destfolder = SetFolder(Root, "标签");
                    #region====文件命名==============
                    order = DateTime.Now.ToLocalTime().ToFileTime().ToString();
                    DestFile = destfolder + "\\标签" + order + ".xls";
                    #endregion
                    #region=====空白文档=======
                    Standard = "YCCLABEL";
                    exAgent.CreateNewSheet(temp + ".xls", Standard);
                    tempfile = exAgent.FileName;
                    #endregion
                    YCCLABEL(dsSource);
                    exAgent.Close();
                    IsReturn = true; ;
                    break;

            }
            return filename;
        }

    }
}
